package br.com.curso.investimento;

import java.util.Random;

public class Moderado implements Investimento{

	@Override
	public double processa(Conta conta) {
		Random random = new Random();
		if (random.nextDouble() > 0.50) {
			return conta.getSaldo() * 0.025;
		}
		return conta.getSaldo() * 0.007;
	}

}
